package com.woniuxy.cloud.api;

import com.woniuxy.cloud.demo.Result;
import com.woniuxy.cloud.dto.DamageDto;
import com.woniuxy.cloud.param.DamageParam;
import com.woniuxy.cloud.param.ListDamageParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author 高瑞
 * @date 2022/2/20 002022:44
 */
@FeignClient(value = "battery")
public interface BatteryDamageApi {

    @PostMapping("/listDamageMessage")
    Result<List<DamageDto>> listDamageMessage(@Validated @RequestBody ListDamageParam param);

}
